const http = uni.$u.http

const api = {
	wechat: '/api/miniapp/wechat.php',
	get_sign_package: '/api/miniapp/wechat.php?act=get_sign_package',
	event_list: '/api/miniapp/user.php?act=event_list',
	refund_order: '/api/miniapp/order.php?act=refund_order',
	testS: '/front/gzh/test.php'
}

export const testS = (params, config) => http.get(api.testS,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const get_sign_package = (params, config) => http.post(api.get_sign_package,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const wechat = (params, config) => http.get(api.wechat,params, {
	custom: {
		toast: false
	},
	
	...config
})
export const event_list = (params, config) => http.get(api.event_list,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const refund_order = (params, config) => http.get(api.refund_order,params, {
	custom: {
		toast: false
	},
	
	...config
})